Optimal. Leaf size=68 \[ \frac{i \sec ^7(c+d x)}{63 a d (a+i a \tan (c+d x))^7}+\frac{i \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0803466, antiderivative size = 68, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3502, 3488} \[ \frac{i \sec ^7(c+d x)}{63 a d (a+i a \tan (c+d x))^7}+\frac{i \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3502
Rule 3488
Rubi steps
\begin{align*} \int \frac{\sec ^7(c+d x)}{(a+i a \tan (c+d x))^8} \, dx &=\frac{i \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^8}+\frac{\int \frac{\sec ^7(c+d x)}{(a+i a \tan (c+d x))^7} \, dx}{9 a}\\ &=\frac{i \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^8}+\frac{i \sec ^7(c+d x)}{63 a d (a+i a \tan (c+d x))^7}\\ \end{align*}
Mathematica [A] time = 0.101362, size = 40, normalized size = 0.59 \[ -\frac{(\tan (c+d x)-8 i) \sec ^7(c+d x)}{63 a^8 d (\tan (c+d x)-i)^8} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.108, size = 156, normalized size = 2.3 \begin{align*} 2\,{\frac{1}{d{a}^{8}} \left ( -{\frac{86}{3\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{3}}}+136\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{-5}+{\frac{7\,i}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{2}}}+{\frac{128}{9\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{9}}}+{\frac{{\frac{496\,i}{3}}}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{6}}}-{\frac{928}{7\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{7}}}+ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{-1}-{\frac{64\,i}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{8}}}-{\frac{76\,i}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{4}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.21565, size = 72, normalized size = 1.06 \begin{align*} \frac{7 i \, \cos \left (9 \, d x + 9 \, c\right ) + 9 i \, \cos \left (7 \, d x + 7 \, c\right ) + 7 \, \sin \left (9 \, d x + 9 \, c\right ) + 9 \, \sin \left (7 \, d x + 7 \, c\right )}{126 \, a^{8} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.44531, size = 92, normalized size = 1.35 \begin{align*} \frac{{\left (9 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 7 i\right )} e^{\left (-9 i \, d x - 9 i \, c\right )}}{126 \, a^{8} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.22857, size = 169, normalized size = 2.49 \begin{align*} \frac{2 \,{\left (63 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{8} - 63 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} - 483 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{6} + 315 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 693 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 189 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - 225 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 9 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 8\right )}}{63 \, a^{8} d{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}^{9}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]